home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Nov 90 / MacApp.Tech$ 11⁄9⁄90 / 2324-Re[2] Sharable 'CODE-Nov90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.7 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    8350823                         7-Nov-90        10:33PST
  2.  
  3. From:   V0683                           Amoco Tech, Eric Berdahl,VAR
  4.  
  5. To:     CDA0220                         DEV Bell Northern Resrch,B Papp,IDV
  6.         MACAPP.TECH$                    MacApp Technical
  7.  
  8. Sub:    Re[2]: Sharable 'CODE' segs
  9.  
  10. Mark,
  11.  
  12. This is an exciting proposition you've put before us.  I, for one, think it
  13. holds great possibilities.  However, I also see alot of pitfalls.
  14.  
  15. • Since we must still link a program together, we will need linker support for
  16. the notion of "there will be no reference to the function foo because it will
  17. be loaded from some memory already set up by an INIT (or whatever)."
  18. • We should include a great amount of sanity checking.  This should include
  19. stuff like, "I compiled MacApp to .Debug MacII+, the code currently loaded in
  20. the Sharable Area is .NoDebug Sym.  These are incompatible so I must <fill in
  21. the blank>."
  22. • NO application code (as opposed to MacApp code) can be put in a MacApp
  23. "Sharable" segment.  The corrolary of this is that all application code must be
  24. put in non-MacApp segments.  Thus, we will have to be careful about our segment
  25. mappings.
  26. • We will need to pre-agree on the segment number and offset of each MacApp
  27. routine or method.  Currently, this may be easy or not.
  28.  
  29. The main impediment I can see at this time is the fact that the linker does
  30. alot that we will have to override and set to certain constant stuff.
  31. Nonetheless, the benefits are obvious and sizeable.  Perhaps a future version
  32. of the ROM will even have some MacApp stuff in it, hmmm?  Seems like the
  33. ultimate sharable code to me.
  34.  
  35. Skating along,
  36. Eric Berdahl
  37. Amoco Technology Company
  38. AppleLink:  V0683
  39.  
  40.